<!--
 * @Author: 哈尔滨大拐 3181845089@qq.com
 * @Date: 2022-07-13 14:10:42
 * @LastEditors: 哈尔滨大拐 3181845089@qq.com
 * @LastEditTime: 2022-07-14 11:14:32
 * @FilePath: \mygit\实验\邮箱提示\index.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>邮箱提示</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        li {
            list-style: none;
        }

        .wrapper {
            margin: 100px auto;
            width: 400px;
        }

        #email-input {
            width: 400px;
            height: 40px;
            font-size: 20px;
            border: 1px solid #ccc;
            text-indent: 20px;
        }

        #email-input:focus {
            outline: none;
        }

        #email-sug-wrapper {
            width: 400px;
            border: 1px solid #ccc;
            border-top: none;
            display: none;
        }

        #email-sug-wrapper li {
            height: 35px;
            line-height: 35px;
            text-indent: 20px;
            color: #979797;
            cursor: pointer;
        }

        #email-sug-wrapper li:hover {
            background: rgb(153, 199, 245);
        }

        #email-sug-wrapper li.active {
            background: rgb(245, 165, 236);
        }
    </style>
</head>

<body>

    <div class="wrapper">
        <input id="email-input" type="text">
        <ul id="email-sug-wrapper" class="email-sug">
            <li>111</li>
            <li>222</li>
        </ul>
    </div>
    <script>
        var postfixList = ['163.com', 'gmail.com', '126.com', '263.net', 'qq.com']
        const emailInput = document.querySelector('#email-input');
        const emailSug = document.querySelector('#email-sug-wrapper');
    </script>
    <script src="./script1.js"></script>
</body>

</html>